package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 明信片分类
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_postcard_category")
public class PostcardCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    private String name;

    /**
     * 权重
     */
    private Integer weight;

    /**
     * 是否上架
     */
    private Boolean isUp;

    /**
     * 寄语
     */
    private String remark;

    /**
     * 类型：1：一对一；2：一对多
     */
    private Boolean type;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
    public Boolean getUp() {
        return isUp;
    }

    public void setUp(Boolean isUp) {
        this.isUp = isUp;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Boolean getType() {
        return type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }

    @Override
    public String toString() {
        return "PostcardCategory{" +
            "id=" + id +
            ", name=" + name +
            ", weight=" + weight +
            ", isUp=" + isUp +
            ", remark=" + remark +
            ", type=" + type +
            ", updateDatetime=" + updateDatetime +
            ", createDatetime=" + createDatetime +
        "}";
    }
}
